package com.bonc.modules.home.param;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author jinlong
 * @date 2021/8/23
 */
@AllArgsConstructor
@Data
public class SpecialActionParam {

    /**
     * 参数校验分组：削峰行动
     */
    public @interface peakShaving {
    }

    /**
     * 参数校验分组：阳光行动
     */
    public @interface sunshineAction {
    }

    @NotNull(message = "日期不能为空，请检查dealMonth参数", groups = {SpecialActionParam.peakShaving.class, SpecialActionParam.sunshineAction.class})
    private String dealMonth;
    @NotNull(message = "维度不能为空，请检查dimId参数(0:部门;1:地市)", groups = {SpecialActionParam.peakShaving.class})
    private String dimId;
}
